package day230322;

import java.util.Scanner;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/3/22 22:20
 */
public class Main1 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 输入 4 个整数
        int aMinusB = in.nextInt(); // A - B
        int bMinusC = in.nextInt(); // B - C
        int aAddB = in.nextInt(); // A + B
        int bAddC = in.nextInt(); // B + C
        // 计算 A B C 的值
        double A = (aMinusB + aAddB) / 2.0; // A
        double B = (bMinusC + bAddC) / 2.0; // B
        double C = bAddC - B; // C
        // 打印结果
        if (isAnInteger(A) && isAnInteger(B) && isAnInteger(C) && coincidenceLogic(A, B, C, aMinusB, bMinusC, aAddB, bAddC)) {
            // A B C 都是整数 且 符合逻辑
            System.out.println((int) A + " " + (int) B + " " + (int) C);
        } else {
            System.out.println("No");
        }
        in.close();
    }

    // 判断整数
    public static boolean isAnInteger(double num) {
        return num % 1 == 0;
    }

    // 逻辑判断
    public static boolean coincidenceLogic(double A, double B, double C, int aMinusB, int bMinusC, int aAddB, int bAddC) {
        boolean flagOne = A - B == aMinusB;
        boolean flagTwo = A + B == aAddB;
        boolean flagThree = B - C == bMinusC;
        boolean flagFour = B + C == bAddC;
        return flagOne && flagTwo && flagThree && flagFour;
    }
}
